var express = require('express');
var router = express.Router();

let code = '';
/* GET home page. */
router.get('/', function (req, res, next) {
  console.log(req.cookies.str);
  res.render('index', {
    title: 'Express',
    msg: '这里是路由/丫丫'
  });
});

router.get('/qunimade', (req, res, next) => {
  console.log(req.query);
  res.render('maren', {
    msg: req.query.name
  });
});

router.get('/wo', (req, res, next) => {
  console.log(req.params);
  res.redirect('/');
});

router.get('/down', (req, res) => {
  res.render('down');
});

module.exports = router;
